import sys
from PyQt5 import QtCore
from PyQt5.QtWidgets import QApplication

from mainwindow import MainWindow


def main():

    QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)
    QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps)
    app = QApplication(sys.argv)
    main_window = MainWindow()
    main_window.showMaximized()
    main_window.show()
    sys.exit(app.exec_())


if __name__ == "__main__":
    main()